//
//  UserDynamicViewController.h
//  RedGrass
//
//  Created by 徐良俊 on 2019/3/19.
//  Copyright © 2019 hongcaosp. All rights reserved.
//

#import "BaseViewController.h"
#import "RGUserInfoHeaderView.h"
#import "RGRecommendVideoModel.h"
#import "GKPageScrollView.h"

NS_ASSUME_NONNULL_BEGIN
@protocol RGUserDynamicViewDelegate <NSObject>

@optional

//item点击事件
-(void) actionBtnClickWithView:(NSInteger)tag;
//- (void)updateNavigationTitle:(CGFloat)offsetY;
- (void)showTextMessageWithMessage:(NSString *)message;
//点赞
-(void) favoriteVedioWithView:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel * )model;
//评论
-(void) comementVedioWithView:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel * )model;
//分享
-(void) shareVedioWithView:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel * )model;
//更新视频播放量
-(void) updateVedioPlayCountWithVedioId:(NSInteger)vedioId;

@end

@interface UserDynamicViewController : BaseViewController<GKPageListViewDelegate>
@property (nonatomic,assign) NSInteger userId;
@property (nonatomic,weak) id<RGUserDynamicViewDelegate> userViewDelegate;

-(void) startFavoriteAnimationWithIsFavorite:(BOOL)isFavorite cellIndex:(NSInteger)index;

-(void) updateCommentCountsWhenCommentSuccessWithCellIndex:(NSInteger)cellIndex;
//转发成功后更新转发数
-(void) updateforwardCountsWhenShareSuccessWithCellIndex:(NSInteger)cellIndex;

-(void)onShow;
-(void)onHide;
@end

NS_ASSUME_NONNULL_END
